package com.itheima.app.manager;

import com.itheima.feign.DbServiceFeign;
import com.itheima.vo.Answers;
import com.itheima.vo.AnswersVo;
import com.itheima.vo.ReportVo;
import com.itheima.vo.TopicVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;


@Service
public class TestSoulManager {

    @Autowired
    private DbServiceFeign dbServiceFeign;

    public List<TopicVo> testSoul() {
        //1.查询所有题目
        return dbServiceFeign.findAllTestSoul();
    }

    public Integer answer(AnswersVo answers) {
        return dbServiceFeign.TopicAnswer(answers);
    }

    public ReportVo report(Long id) {
        return dbServiceFeign.report(id);
    }
}
